﻿@model ProjectDetailModel
@{
    ViewBag.Title = "工程详细信息";
}
@section BodyNav
{
    > @Html.ActionLink("工程列表", "List", "Project") > 工程详细信息
}
@section Js
{
    <script src="@Url.Content("~/Scripts/LodopFuncs.js")" type="text/javascript"></script>
    <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width="0"
        height="0">
        <param name="Border" value="0">
        <embed id="LODOP_EM" type="application/x-print-lodop" width="0" height="0"></embed>
    </object>
    <script type="text/javascript">
        var LODOP; //声明为全局变量 
        function prn1_preview() {
            LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
            LODOP.SET_PRINTER_INDEX(@Model.PrinterId);
           LODOP.SET_PRINT_MODE("POS_BASEON_PAPER",true);
           LODOP.SET_PRINT_MODE('AUTO_CLOSE_PREWINDOW',1);
            CreateOneFormPage();
            LODOP.PREVIEW();
        };
        function CreateOneFormPage() {
            var style = "";
            style="table,td,th { border: 1 solid #000000;border-collapse:collapse; font-size:12px; } table{width:99%; margin: 0 auto 0 auto;}";
            style+="h1 {text-align:center; font-family: '黑体'}";
            style+="td {line-height:200%;}";
            var strBodyStyle="<style>"+style+"</style>";
		    var strFormHtml=strBodyStyle+"<body>"+document.getElementById("needPrint").innerHTML+"</body>";
            LODOP.ADD_PRINT_HTM(40,80,651,1000,strFormHtml);
        };
    </script>
}
<div id="needPrint">
    <h1>
        太原市起重机械使用备案申请登记表</h1>
    <table class="detail">
        <tr>
            <th>
                工程名称
            </th>
            <td colspan="2">
                @Model.Name
            </td>
            <th>
                工程地址
            </th>
            <td colspan="2">
                @Model.Address
            </td>
        </tr>
        <tr>
            <th width="16%">
                设备名称
            </th>
            <td width="16%">
                @Model.EquipmentName
            </td>
            <th width="16%">
                型号
            </th>
            <td width="16%">
                @Model.EquipmentModel
            </td>
            <th width="16%">
                产权备案编号
            </th>
            <td width="16%">
                @Model.EquipmentNO
            </td>
        </tr>
        <tr>
            <th rowspan="2">
                施工单位
            </th>
            <td rowspan="2" colspan="2">
                @Model.ConstructionCompany
            </td>
            <th>
                项目经理
            </th>
            <td colspan="2">
                @Model.ConstructionProjectManager
            </td>
        </tr>
        <tr>
            <th>
                联系电话
            </th>
            <td colspan="2">
                @Model.ConstructionProjectManagerPhoneMobile
            </td>
        </tr>
        <tr>
            <th rowspan="2">
                产权单位
            </th>
            <td rowspan="2" colspan="2">
                @Model.OwnerCompany
            </td>
            <th>
                负责人
            </th>
            <td colspan="2">
                @Model.Owner
            </td>
        </tr>
        <tr>
            <th>
                联系电话
            </th>
            <td colspan="2">
                @Model.Mobile
            </td>
        </tr>
        <tr>
            <th rowspan="2">
                安拆单位
            </th>
            <td rowspan="2" colspan="2">
                @Model.DemolitionCompany
            </td>
            <th>
                负责人
            </th>
            <td colspan="2">
                @Model.DemolitionCompanyOwner
            </td>
        </tr>
        <tr>
            <th>
                联系电话
            </th>
            <td colspan="2">
                @Model.DemolitionCompanyPhone
            </td>
        </tr>
        <tr>
            <th rowspan="2">
                检测单位
            </th>
            <td rowspan="2" colspan="2">
                @Model.InspectCompany
            </td>
            <th>
                检测时间
            </th>
            <td colspan="2">
                @Model.InspectTime
            </td>
        </tr>
        <tr>
            <th>
                检测编号
            </th>
            <td colspan="2">
                @Model.InspectNO
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <br />
                施工单位意见
                <br />
                <br />
                <br />
                <br />
                <br />
                项目经理:
                <br />
                <br />
                <br />
                <br />
                <div class="floatRight">
                    &nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日</div>
            </td>
            <td colspan="2">
                <br />
                监理单位意见
                <br />
                <br />
                <br />
                <br />
                <br />
                总监理工程师:
                <br />
                <br />
                <br />
                <br />
                <div class="floatRight">
                    &nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日</div>
            </td>
            <td colspan="2">
                <br />
                安装单位意见
                <br />
                <br />
                <br />
                <br />
                <br />
                安装负责人:
                <br />
                <br />
                <br />
                <br />
                <div class="floatRight">
                    &nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日</div>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <br />
                产权单位意见
                <br />
                <br />
                <br />
                <br />
                <br />
                负责人:
                <br />
                <br />
                <br />
                <br />
                <div class="floatRight">
                    &nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日</div>
            </td>
            <td colspan="2">
                <br />
                检测单位意见
                <br />
                <br />
                <br />
                <br />
                <br />
                负责人:
                <br />
                <br />
                <br />
                <br />
                <div class="floatRight">
                    &nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日</div>
            </td>
            <td colspan="2">
                <br />
                市安监站意见
                <br />
                <br />
                承办人：
                <br />
                <br />
                审核人：
                <br />
                <br />
                负责人:
                <br />
                <br />
                <br />
                <div class="floatRight">
                    &nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日</div>
            </td>
        </tr>
    </table>
    <div class="width99percent">
        注：1.此表一式六份。市安监站、施工总承包单位、产权单位、安装单位、监理单位、检测单位各一份。<br />
        2. 以检测合格报告的检测日期为准的30日内持《山西省建筑起重机械备案使用登记证书》操作人员证件到安监站领取起重机械登记证。
    </div>
</div>
<table class="width99percent">
    <tr>
        <td colspan="4">
            @Html.ActionLink("返回列表", "List", "Project", null, new { @class = "lnkBtn" })
            @if (Model.Status != ProjectStatus.Destroyed && UserAuthnicationHelper.CurrentUserType >= UserTypes.Operator)
            {
                <a href="javascript:prn1_preview()" class="lnkBtn">打印申请表</a>
                if (Model.InspectResult != InspectResults.None)
                {
                @Html.ActionLink("打印备案情况", "PrintEquipmentBeiAn", "Project", new { Id = Model.Id }, new { @class = "lnkBtn" })
                }
                else
                {
                @Html.ActionLink("录入检测结果", "InspectResultEdit", "Project", new { Id = Model.Id }, new { @class = "lnkBtn" })    
                }
                if (Model.Status >= ProjectStatus.ApplyFormFinish)
                {
                @Html.ActionLink("打印准运证", "ZhunYunZheng", "Project", new { Id = Model.Id }, new { @class = "lnkBtn" })
                @Html.ActionLink("打印标签", "PrintTags", "Project", new { Id = Model.Id }, new { @class = "lnkBtn" })
                @Html.ActionLink("续检", "InspectAgain", "Project", new { Id = Model.Id }, new { @class = "lnkBtn" })
                }

            }
        </td>
    </tr>
</table>
